﻿using CommonModel;
using Domain.Database;

namespace IBll
{
    /// <summary>
    /// 配置服务接口
    /// </summary>
    public interface IConfigBll : IDependency
    {
        /// <summary>
        /// 修改配置
        /// </summary>
        /// <param name="configRequest"></param>
        /// <returns></returns>
        bool UpdateConfig(ConfigRequest configRequest);
        /// <summary>
        /// 查询配置
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        Config SearchConfig(string key);
        /// <summary>
        /// 删除配置
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool DeleteConfig(string key);
    }
}
